#ifndef LOGIN_H
#define LOGIN_H

#include <QWidget>
#include <QUdpSocket>


namespace Ui {
class Login;
}

class Login : public QWidget
{
    Q_OBJECT

public:
    explicit Login(QWidget *parent = nullptr);
    ~Login();

private slots:
    void onRegisterClicked();
    void onLoginClicked();
    void handleServerResponse();

private:
    Ui::Login *ui;
    QUdpSocket *udpSocket;
    QString md5Hash(const QString &password);
};

#endif // LOGIN_H
